package cn.zl.GB28181.transmit.event.request.impl.message;

import cn.zl.model.Device;
import cn.zl.model.Platform;
import org.dom4j.Element;

import javax.sip.RequestEvent;

public interface IMessageHandler {

    /**
     * 处理来自设备的信息
     * @param event 事件
     * @param device 设备
     */
    void handForDevice(RequestEvent event, Device device, Element element);

    /**
     * 处理来自平台的信息
     * @param event 事件
     * @param platform 上级平台
     */
    void handForPlatform(RequestEvent event, Platform platform, Element element);

}
